<template>
  <div>
    <my-header-2></my-header-2>
    <div class="cont">
      <div class="hbb">猫眼电影>{{ itemObj.nm }}</div>
      <div class="cont1">
        <div class="cont1_img">
          <img :src="itemObj.img" alt="" srcset="" />
          <p>
            <img
              src="https://s0.meituan.net/bs/myfe/canary/file/asgard/images/movie/poster-play.png"
              alt=""
            />
          </p>
        </div>

        <div class="cont1_text">
          <p>{{ itemObj.nm }}</p>
          <p>{{ itemObj.enm }}</p>
          <p>{{ itemObj.cat }}</p>
          <p>{{ itemObj.musicStar }}</p>
          <p>{{ itemObj.pubDesc }}</p>
          <p>
            <span class="wantsee">想看</span>
            <span class="saw">看过</span>
          </p>
        </div>
      </div>
    </div>
    <div class="item_bottom">
      <div>
        <img
          src="https://s0.meituan.net/bs/myfe/canary/file/asgard/images/movie/share-icon.png"
          alt=""
        />
      </div>
      <div class="spe_btn">特惠购票</div>
    </div>
  </div>
</template>

<script>
import MyHeader2 from "@/components/MyHeader2.vue";
export default {
  components: { MyHeader2 },
  data() {
    return {
      itemObj: {},
    };
  },
  mounted() {
    var itemid = this.$route.params.itemid;

    this.$axios.get("./json/" + itemid + ".json").then((res) => {
      this.itemObj = res.data.data.movie;
      this.itemObj.img = this.itemObj.img.replace("w.h", "100.138");
      console.log(this.itemObj);
    });
  },
};
</script>

<style lang="less" scoped>
.item_bottom {
  background-color: #fff;
  height: 1.6rem;
  width: 100%;
  border-top-left-radius: 0.1rem;
  border-top-right-radius: 0.1rem;
  overflow: hidden;
  margin: 0;
  position: fixed;
  bottom: 0px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.item_bottom > div img {
  width: 0.506667rem;
  height: 0.506667rem;
}
.spe_btn {
  width: 7.52rem;
  height: 1.173333rem;
  background-image: linear-gradient(-90deg, #fb3333, #ff5269);
  box-shadow: 0 0.06rem 0.12rem 0 rgb(251 51 51 / 30%);
  border-radius: 0.5rem;
  font-size: 0.426667rem;
  color: #fff;
  text-align: center;
  line-height: 1.173333rem;
  margin: 0 0.2rem;
}
.cont {
  width: 100%;
  height: 1000px;
  background: #296666;
  padding: 0.5333rem;
  box-sizing: border-box;
}

.hbb {
  font-size: 0.3733rem;
  color: #cccccc;
  margin-bottom: 0.5333rem;
}

.cont1 {
  display: flex;
  .cont1_img {
    margin-right: 0.2667rem;
    position: relative;
    p {
      width: 0.8rem;
      height: 0.8rem;
      position: absolute;
      img {
        position: absolute;
        top: -0.88rem;
        width: 100%;
      }
    }
  }
  .cont1_text {
    width: 100%;
  }
  .cont1_text p {
    font-size: 0.32rem;
    color: #ccc;
    margin-bottom: 0.1333rem;
  }
  .cont1_text p:nth-of-type(1) {
    font-size: 0.5333rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.2667rem;
  }
  .cont1_text p:nth-of-type(6) {
    width: 100%;
    display: flex;
    justify-content: space-between;
    text-align: center;
    height: 0.8rem;

    .wantsee,
    .saw {
      width: 47%;
      background: #ffffff59;
      color: #fff;
      line-height: 0.8rem;
      border-radius: 0.1333rem;
      font-size: 0.32rem;
    }
  }
}
.wantsee .liticon img {
  display: inline-block;
  width: 0.533333rem;
}
.liticon {
  margin-top: 0.08rem;
  text-align: center;
  line-height: 0.8rem;
}
</style>